package com.sc.design.proxy;

public class GamePlayerProxy implements IGamePlayer {
    private IGamePlayer iGamePlayer = null;
    GamePlayerProxy(String name){
        iGamePlayer = new GamePlayer(this,name);
    }

    @Override
    public void killBoss() {
        this.iGamePlayer.killBoss();
    }

    @Override
    public void upgrade() {
        this.iGamePlayer.upgrade();
    }

    @Override
    public void login() {
        this.iGamePlayer.login();
    }
}
